<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.4"/>
<title>gbmath: scalar.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.jpg"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">gbmath
   &#160;<span id="projectnumber">v0.051</span>
   </div>
   <div id="projectbrief">c++ math library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#namespaces">Namespaces</a> &#124;
<a href="#namespaces">Constant Groups</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">scalar.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>float/double operations .  
<a href="#details">More...</a></p>

<p><a href="scalar_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacegbmath"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html">gbmath</a></td></tr>
<tr class="memdesc:namespacegbmath"><td class="mdescLeft">&#160;</td><td class="mdescRight">math operations and structures . <br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Constant Groups</h2></td></tr>
<tr class="memitem:namespacegbmath"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html">gbmath</a></td></tr>
<tr class="memdesc:namespacegbmath"><td class="mdescLeft">&#160;</td><td class="mdescRight">math operations and structures . <br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aefe79f6a1175131aecf3149f0fec6d49"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#aefe79f6a1175131aecf3149f0fec6d49">gbmath::compare</a> (float a, float b, float epsilon)</td></tr>
<tr class="separator:aefe79f6a1175131aecf3149f0fec6d49"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30da8e56355a72f9d2565cbf89179153"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a30da8e56355a72f9d2565cbf89179153">gbmath::check</a> (float f)</td></tr>
<tr class="memdesc:a30da8e56355a72f9d2565cbf89179153"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check the value the correct value.  <a href="#a30da8e56355a72f9d2565cbf89179153">More...</a><br/></td></tr>
<tr class="separator:a30da8e56355a72f9d2565cbf89179153"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac312471790333df7fed15517524443b9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ac312471790333df7fed15517524443b9">gbmath::check</a> (double d)</td></tr>
<tr class="memdesc:ac312471790333df7fed15517524443b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Check the value the correct value.  <a href="#ac312471790333df7fed15517524443b9">More...</a><br/></td></tr>
<tr class="separator:ac312471790333df7fed15517524443b9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af7ceb382df8a74edbe983b1745229cce"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#af7ceb382df8a74edbe983b1745229cce">gbmath::sqr</a> (float x)</td></tr>
<tr class="memdesc:af7ceb382df8a74edbe983b1745229cce"><td class="mdescLeft">&#160;</td><td class="mdescRight">x*x  <a href="#af7ceb382df8a74edbe983b1745229cce">More...</a><br/></td></tr>
<tr class="separator:af7ceb382df8a74edbe983b1745229cce"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6770b1369e60e627d9e86b8ec68188e1"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a6770b1369e60e627d9e86b8ec68188e1">gbmath::abs</a> (float val)</td></tr>
<tr class="separator:a6770b1369e60e627d9e86b8ec68188e1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30742374d53e9b267e9efa8dc80a0a91"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a30742374d53e9b267e9efa8dc80a0a91"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a30742374d53e9b267e9efa8dc80a0a91">gbmath::lerp</a> (float alpha, const T &amp;v0, const T &amp;v1)  throw ()</td></tr>
<tr class="memdesc:a30742374d53e9b267e9efa8dc80a0a91"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the linear interpolation.  <a href="#a30742374d53e9b267e9efa8dc80a0a91">More...</a><br/></td></tr>
<tr class="separator:a30742374d53e9b267e9efa8dc80a0a91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5292b82144444629c81be0728104e8ab"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a5292b82144444629c81be0728104e8ab">gbmath::bilerp</a> (const float a, const float b, const float c, const float d, float u, float v)</td></tr>
<tr class="memdesc:a5292b82144444629c81be0728104e8ab"><td class="mdescLeft">&#160;</td><td class="mdescRight">bilinear interpolation  <a href="#a5292b82144444629c81be0728104e8ab">More...</a><br/></td></tr>
<tr class="separator:a5292b82144444629c81be0728104e8ab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30b7c446b59840332a8e001a80316bc5"><td class="memTemplParams" colspan="2">template&lt;class T &gt; </td></tr>
<tr class="memitem:a30b7c446b59840332a8e001a80316bc5"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a30b7c446b59840332a8e001a80316bc5">gbmath::clamp</a> (const T &amp;v, const T &amp;l, const T &amp;u)  throw ()</td></tr>
<tr class="memdesc:a30b7c446b59840332a8e001a80316bc5"><td class="mdescLeft">&#160;</td><td class="mdescRight">reduction in the range between  <a href="#a30b7c446b59840332a8e001a80316bc5">More...</a><br/></td></tr>
<tr class="separator:a30b7c446b59840332a8e001a80316bc5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a07b847494d285fb1532c8718a6cb2fbd"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a07b847494d285fb1532c8718a6cb2fbd"><td class="memTemplItemLeft" align="right" valign="top">void&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a07b847494d285fb1532c8718a6cb2fbd">gbmath::fill</a> (T *dest, const T val, const int num)  throw ()</td></tr>
<tr class="memdesc:a07b847494d285fb1532c8718a6cb2fbd"><td class="mdescLeft">&#160;</td><td class="mdescRight">fill the buffer dest value val number num.  <a href="#a07b847494d285fb1532c8718a6cb2fbd">More...</a><br/></td></tr>
<tr class="separator:a07b847494d285fb1532c8718a6cb2fbd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae98efd1a452855c4e8c7e8ef08bab2a1"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ae98efd1a452855c4e8c7e8ef08bab2a1">gbmath::sign</a> (const float val)</td></tr>
<tr class="memdesc:ae98efd1a452855c4e8c7e8ef08bab2a1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the sign of <br/>
 x&gt;0 : 1 <br/>
 x=0 : 0 <br/>
 x&lt;0 : -1.  <a href="#ae98efd1a452855c4e8c7e8ef08bab2a1">More...</a><br/></td></tr>
<tr class="separator:ae98efd1a452855c4e8c7e8ef08bab2a1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a273bd63fdf09037f17ea3ef69c037528"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a273bd63fdf09037f17ea3ef69c037528">gbmath::sign2</a> (float x)</td></tr>
<tr class="memdesc:a273bd63fdf09037f17ea3ef69c037528"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the sign of <br/>
 x&gt;0 : 1 <br/>
 x=0 : 0 <br/>
 x&lt;0 : -1.  <a href="#a273bd63fdf09037f17ea3ef69c037528">More...</a><br/></td></tr>
<tr class="separator:a273bd63fdf09037f17ea3ef69c037528"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab28d0d43c10be205a0fc2aa114241330"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ab28d0d43c10be205a0fc2aa114241330">gbmath::cartesianToSpherical</a> (float x, float y, float z, float &amp;rho, float &amp;phi, float &amp;theta)</td></tr>
<tr class="memdesc:ab28d0d43c10be205a0fc2aa114241330"><td class="mdescLeft">&#160;</td><td class="mdescRight">All angles are in radians. rho = distance from origin O to point P (i.e., length of OP) phi = angle between OP and the XZ plane theta = angle between X-axis and OP projected onto XZ plane.  <a href="#ab28d0d43c10be205a0fc2aa114241330">More...</a><br/></td></tr>
<tr class="separator:ab28d0d43c10be205a0fc2aa114241330"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a343f1f71e8a00aa022050fd353b0f84a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a343f1f71e8a00aa022050fd353b0f84a">gbmath::sphericalToCartesian</a> (float rho, float phi, float theta, float &amp;x, float &amp;y, float &amp;z)</td></tr>
<tr class="memdesc:a343f1f71e8a00aa022050fd353b0f84a"><td class="mdescLeft">&#160;</td><td class="mdescRight">All angles are in radians. rho = distance from origin O to point P (i.e., length of OP) phi = angle between OP and the XZ plane theta = angle between X-axis and OP projected onto XZ plane.  <a href="#a343f1f71e8a00aa022050fd353b0f84a">More...</a><br/></td></tr>
<tr class="separator:a343f1f71e8a00aa022050fd353b0f84a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af60fd2cd2867f18928beb9f185e7c980"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#af60fd2cd2867f18928beb9f185e7c980">gbmath::smoothstep</a> (float a, float b, float x)</td></tr>
<tr class="memdesc:af60fd2cd2867f18928beb9f185e7c980"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a gradual transition of 'x' from 0 to 1 beginning at threshold 'a' and ending at threshold 'b'. References: [1] <a href="http://www.rendermanacademy.com/docs/smoothstep.htm">http://www.rendermanacademy.com/docs/smoothstep.htm</a> [2] <a href="http://www.brlcad.org/doxygen/d8/d33/noise_8c-source.html">http://www.brlcad.org/doxygen/d8/d33/noise_8c-source.html</a> [3] Natalya Tatarchuk, "Efficient High-Level Shader Development", Game Developers Conference Europe, August 2003.  <a href="#af60fd2cd2867f18928beb9f185e7c980">More...</a><br/></td></tr>
<tr class="separator:af60fd2cd2867f18928beb9f185e7c980"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b9ccbf89172906f824d9c223a458ff9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a4b9ccbf89172906f824d9c223a458ff9">gbmath::closeEnough</a> (float f1, float f2)</td></tr>
<tr class="memdesc:a4b9ccbf89172906f824d9c223a458ff9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Determines whether the two floating-point values f1 and f2 are close enough together that they can be considered equal.  <a href="#a4b9ccbf89172906f824d9c223a458ff9">More...</a><br/></td></tr>
<tr class="separator:a4b9ccbf89172906f824d9c223a458ff9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7b9af880500614372b44439d3d24aed9"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a7b9af880500614372b44439d3d24aed9">gbmath::is_power2</a> (int x)</td></tr>
<tr class="separator:a7b9af880500614372b44439d3d24aed9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa1127e0ed6083818b38a89c063365c74"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#aa1127e0ed6083818b38a89c063365c74">gbmath::clump</a> (float value, float _min, float _max)</td></tr>
<tr class="memdesc:aa1127e0ed6083818b38a89c063365c74"><td class="mdescLeft">&#160;</td><td class="mdescRight">Clipping values ​​in a range between minimum and maximum inclusive.  <a href="#aa1127e0ed6083818b38a89c063365c74">More...</a><br/></td></tr>
<tr class="separator:aa1127e0ed6083818b38a89c063365c74"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1d44db3ba00e7255e2ddf760df556ffd"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a1d44db3ba00e7255e2ddf760df556ffd">gbmath::sincos</a> (const float a, float &amp;outSin, float &amp;outCos)</td></tr>
<tr class="memdesc:a1d44db3ba00e7255e2ddf760df556ffd"><td class="mdescLeft">&#160;</td><td class="mdescRight">sine and cosine.  <a href="#a1d44db3ba00e7255e2ddf760df556ffd">More...</a><br/></td></tr>
<tr class="separator:a1d44db3ba00e7255e2ddf760df556ffd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7e5c294042e090b544f4c46e3694690"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ad7e5c294042e090b544f4c46e3694690">gbmath::arccot</a> (float f)</td></tr>
<tr class="memdesc:ad7e5c294042e090b544f4c46e3694690"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the arc cotangent.  <a href="#ad7e5c294042e090b544f4c46e3694690">More...</a><br/></td></tr>
<tr class="separator:ad7e5c294042e090b544f4c46e3694690"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5ecfee596749b307ba5b1da2e4e703d"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ae5ecfee596749b307ba5b1da2e4e703d">gbmath::arctg</a> (float y, float x)</td></tr>
<tr class="memdesc:ae5ecfee596749b307ba5b1da2e4e703d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Calculate the arc tangent.  <a href="#ae5ecfee596749b307ba5b1da2e4e703d">More...</a><br/></td></tr>
<tr class="separator:ae5ecfee596749b307ba5b1da2e4e703d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a943dd559c743e425059e481a41d0e617"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a943dd559c743e425059e481a41d0e617">gbmath::safeAcos</a> (float x)</td></tr>
<tr class="memdesc:a943dd559c743e425059e481a41d0e617"><td class="mdescLeft">&#160;</td><td class="mdescRight">Same as acos(x), but if x is out of range, it is "clamped" to the nearest valid value. The value returned is in range 0...pi, the same as the standard C acos() function.  <a href="#a943dd559c743e425059e481a41d0e617">More...</a><br/></td></tr>
<tr class="separator:a943dd559c743e425059e481a41d0e617"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2ec5e3673fe6cd0408e75e2c9c0f170"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ad2ec5e3673fe6cd0408e75e2c9c0f170">gbmath::cotan</a> (const float f)</td></tr>
<tr class="memdesc:ad2ec5e3673fe6cd0408e75e2c9c0f170"><td class="mdescLeft">&#160;</td><td class="mdescRight">cotangent  <a href="#ad2ec5e3673fe6cd0408e75e2c9c0f170">More...</a><br/></td></tr>
<tr class="separator:ad2ec5e3673fe6cd0408e75e2c9c0f170"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad9e70f8fc15c2f3f164ed07448dd3b53"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ad9e70f8fc15c2f3f164ed07448dd3b53">gbmath::radiansToDegree</a> (float rad)</td></tr>
<tr class="memdesc:ad9e70f8fc15c2f3f164ed07448dd3b53"><td class="mdescLeft">&#160;</td><td class="mdescRight">Angle in radians to degrees.  <a href="#ad9e70f8fc15c2f3f164ed07448dd3b53">More...</a><br/></td></tr>
<tr class="separator:ad9e70f8fc15c2f3f164ed07448dd3b53"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab3b04e4d988b846e88d2b555bcca9540"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ab3b04e4d988b846e88d2b555bcca9540">gbmath::degreeToRadians</a> (float dgr)</td></tr>
<tr class="memdesc:ab3b04e4d988b846e88d2b555bcca9540"><td class="mdescLeft">&#160;</td><td class="mdescRight">Angle in degrees to radians.  <a href="#ab3b04e4d988b846e88d2b555bcca9540">More...</a><br/></td></tr>
<tr class="separator:ab3b04e4d988b846e88d2b555bcca9540"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afb3b41ebf2f06be87644ba1cfa8487c8"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#afb3b41ebf2f06be87644ba1cfa8487c8">gbmath::normalize_angle</a> (float angle)</td></tr>
<tr class="memdesc:afb3b41ebf2f06be87644ba1cfa8487c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Normalization of the angle of rotation angle. Cast the value in the range -PI ... + PI .  <a href="#afb3b41ebf2f06be87644ba1cfa8487c8">More...</a><br/></td></tr>
<tr class="separator:afb3b41ebf2f06be87644ba1cfa8487c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30eec791d5b4d5df94f6c11a991b8239"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a30eec791d5b4d5df94f6c11a991b8239">gbmath::lerp</a> (const float f1, const float f2, const float k)</td></tr>
<tr class="memdesc:a30eec791d5b4d5df94f6c11a991b8239"><td class="mdescLeft">&#160;</td><td class="mdescRight">Linear interpolation.  <a href="#a30eec791d5b4d5df94f6c11a991b8239">More...</a><br/></td></tr>
<tr class="separator:a30eec791d5b4d5df94f6c11a991b8239"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2835c23a3b974829144107d2e021fbac"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a2835c23a3b974829144107d2e021fbac">gbmath::round</a> (float f)</td></tr>
<tr class="memdesc:a2835c23a3b974829144107d2e021fbac"><td class="mdescLeft">&#160;</td><td class="mdescRight">rounding .  <a href="#a2835c23a3b974829144107d2e021fbac">More...</a><br/></td></tr>
<tr class="separator:a2835c23a3b974829144107d2e021fbac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a92e2579b3533ef25c04dddb004adb4f2"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a92e2579b3533ef25c04dddb004adb4f2">gbmath::max3</a> (float a, float b, float c)</td></tr>
<tr class="memdesc:a92e2579b3533ef25c04dddb004adb4f2"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get an average of 3 values.  <a href="#a92e2579b3533ef25c04dddb004adb4f2">More...</a><br/></td></tr>
<tr class="separator:a92e2579b3533ef25c04dddb004adb4f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba8cda4d109bd7e51e5394a97118fdf0"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#aba8cda4d109bd7e51e5394a97118fdf0">gbmath::average_arithmetic</a> (const float *pf, const unsigned int num)</td></tr>
<tr class="memdesc:aba8cda4d109bd7e51e5394a97118fdf0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute and return the average (arithmetic)  <a href="#aba8cda4d109bd7e51e5394a97118fdf0">More...</a><br/></td></tr>
<tr class="separator:aba8cda4d109bd7e51e5394a97118fdf0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a65e7295323df3c440084df0638b1e2af"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#a65e7295323df3c440084df0638b1e2af">gbmath::average_geometric</a> (const float *pf, const unsigned int num)</td></tr>
<tr class="memdesc:a65e7295323df3c440084df0638b1e2af"><td class="mdescLeft">&#160;</td><td class="mdescRight">Compute and return the geometric mean.  <a href="#a65e7295323df3c440084df0638b1e2af">More...</a><br/></td></tr>
<tr class="separator:a65e7295323df3c440084df0638b1e2af"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab6491049b7dbd6e1bdc31cb41c8660b5"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ab6491049b7dbd6e1bdc31cb41c8660b5">gbmath::random</a> ()</td></tr>
<tr class="memdesc:ab6491049b7dbd6e1bdc31cb41c8660b5"><td class="mdescLeft">&#160;</td><td class="mdescRight">random values ​​in the range ( 0.0f ... 1.0f )  <a href="#ab6491049b7dbd6e1bdc31cb41c8660b5">More...</a><br/></td></tr>
<tr class="separator:ab6491049b7dbd6e1bdc31cb41c8660b5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7acbedef3d45b46710884c401ac51fd"><td class="memItemLeft" align="right" valign="top">BYTE&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#ad7acbedef3d45b46710884c401ac51fd">gbmath::scale_byte</a> (BYTE val, float k)</td></tr>
<tr class="separator:ad7acbedef3d45b46710884c401ac51fd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb44b722761abeebc83964ceab6ce0f4"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacegbmath.html#aeb44b722761abeebc83964ceab6ce0f4">gbmath::faster_floor</a> (const float x)</td></tr>
<tr class="separator:aeb44b722761abeebc83964ceab6ce0f4"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>float/double operations . </p>

<p>Definition in file <a class="el" href="scalar_8h_source.html">scalar.h</a>.</p>
</div></div><!-- contents -->
<hr class="footer"/>
<!--address class="footer"-->
<!--small-->
<br>
&nbsp;&nbsp;&nbsp;<b>Project page:</b> &nbsp;<a target="_blank" href="https://code.google.com/p/gbmath/">https://code.google.com/p/gbmath/</a>&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;<b>Doc page:</b> &nbsp;<a target="_blank" href="http://www.it.ks777.ru/docs">http://www.it.ks777.ru/docs</a>&nbsp;&nbsp;<br>
<br>
Generated on Sat Jul 27 2013 08:09:04 for gbmath by &#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.4
